package com.mars.module.admin.entity;

import java.util.Date;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mars.module.system.entity.BaseEntity;

/**
 * 用户对象 ap_user
 *
 * @author mars
 * @date 2024-02-24
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "用户对象")
@Builder
@Accessors(chain = true)
@TableName("ap_user")
public class ApUser extends BaseEntity {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 头像
     */
    @Excel(name = "头像")
    @ApiModelProperty(value = "头像")
    private String headPortrait;
    /**
     * 账号
     */
    @Excel(name = "账号")
    @ApiModelProperty(value = "账号")
    private String account;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 0正常 1封禁
     */
    @Excel(name = "0正常 1封禁")
    @ApiModelProperty(value = "0正常 1封禁")
    private Integer state;
    /**
     * 手机号
     */
    @Excel(name = "手机号")
    @ApiModelProperty(value = "手机号")
    private String mobile;

    /**
     * 简介
     */
    @Excel(name = "简介")
    @ApiModelProperty(value = "简介")
    private String introductionToThe;
    /**
     * 登录时间
     */
    @Excel(name = "登录时间")
    @ApiModelProperty(value = "登录时间")
    private LocalDateTime loginTime;
    /**
     * 最近访问时间
     */
    @Excel(name = "最近访问时间")
    @ApiModelProperty(value = "最近访问时间")
    private LocalDateTime recentlyVisitTime;
}
